package com.lesso.cyg.sunflower.infra.repository.impl;

import com.lesso.cyg.sunflower.domain.repository.DatAttendanceRecordRepository;
import com.lesso.cyg.sunflower.infra.mapper.DatAttendanceRecordMapper;
import com.lesso.cyg.sunflower.model.DatAttendanceRecord;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * 员工打卡记录Repository实现类
 */
@Repository
public class DatAttendanceRecordRepositoryImpl implements DatAttendanceRecordRepository {

    @Resource
    private DatAttendanceRecordMapper datAttendanceRecordMapper;

    @Override
    public Integer save(DatAttendanceRecord record) {
        return datAttendanceRecordMapper.insertRecord(record);
    }

    @Override
    public List<DatAttendanceRecord> findByEmployeeId(Long employeeId) {
        return Collections.emptyList();
    }
}